<!DOCTYPE html>

<html class="no-js">
<!-- sdf -->

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <title></title>
  <meta name="description" content="" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <script src="https://cdn.staticfile.org/vue/2.5.17/vue.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/element-ui/2.4.11/index.js"></script>
  <script src="https://cdn.staticfile.org/echarts/4.2.1-rc1/echarts.min.js"></script>
  <script src="https://avuejs.com/cdn/echarts-wordcloud.min.js"></script>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/element-ui/2.4.11/theme-chalk/index.css" />
  <link rel="stylesheet" href="../../../lib/index.css" />
  <script src="../../../lib/avue.js"></script>

</head>

<body>
  <div id="app">
    <avue-echart-wordCloud ref="echart" :option="config" :data="data" width="1000"></avue-echart-wordCloud>
  </div>
</body>
<script>
  new Vue({
    el: '#app',
    data() {
      return {
        data: [{
          "name": "iPhone X",
          "value": 19651
        }, {
          "name": "Mac Pro",
          "value": 18341
        }, {
          "name": "华为P20",
          "value": 17319
        }, {
          "name": "小米手机",
          "value": 12550
        }, {
          "name": "欧莱雅",
          "value": 11638
        }, {
          "name": "玛莎拉蒂",
          "value": 10608
        }, {
          "name": "特斯拉Model S",
          "value": 8298
        }, {
          "name": "jackjones",
          "value": 7630
        }, {
          "name": "韩都衣舍",
          "value": 7440
        }, {
          "name": "天生要强",
          "value": 6065
        }, {
          "name": "梅西",
          "value": 5065
        }, {
          "name": "三只松鼠",
          "value": 4965
        }],
        config: {
          "minFontSize": 30,
          "maxFontSize": 80,
          "split": 30,
          "rotate": true
        }
      }
    }
  })

</script>

</html>